// pages/component/personal/personal.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },
  options: {
    addGlobalClass: true,
  },

  /**
   * 组件的初始数据
   */
  data: {
    userInfo: {   //用户头像及昵称
      "head": "../../../images/1.jpg",
      "nickname": "蓝蜗牛热热"
    },
    img: [   //收藏和足迹的icon
      "../../../images/collect.png",
      "../../../images/footprint.png"
    ],
    noThing:[
      {
        img: "../../../images/noCol.jpg",
        text:"收藏"
      },
      {
        img: "../../../images/noFt.jpg",
        text: "足迹"
      },
    ],
    listNum:0,  //收藏的数量
    ftNum:0,  //足迹的数量
    showCol:false,  //显示隐藏我的收藏
  },

  /**
   * 组件的方法列表
   */
  methods: {
    //展开收起
    showHidden(e){
      let { showCol} = this.data;
      this.setData({
        showCol:!showCol
      })
      console.log(e);
    }
  }
})
